package com.beverages.holder.client;

import com.beverages.holder.common.Result;
import com.beverages.holder.config.FeignOkHttpConfig;
import com.beverages.holder.entity.dto.intermediate.CommoditiesDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "merchant-commodities-service", url = "${merchant.commodities.service.url}", configuration = FeignOkHttpConfig.class)
public interface MerchantCommoditiesClient {

    @GetMapping("/merchant/commodities/{milkteaId}")
    Result<CommoditiesDTO> findOneCommodityDTO(@PathVariable("milkteaId") Integer milkteaId);

}